//
//  SelectAreaController.h
//  BCNADemo
//
//  Created by 马东朝 on 2018/5/4.
//  Copyright © 2018年 马东朝. All rights reserved.
//

#import "BaseController.h"
//1.代理传值
@protocol XWCountryCodeControllerDelegate <NSObject>

@optional
-(void)returnCountryCode:(NSString *)countryCode;

@end

//2.block传值  typedef void(^returnBlock)(NSString *showText);
typedef void(^returnCountryCodeBlock) (NSString *countryCodeStr);

@interface SelectAreaController : BaseController
//代理
@property (nonatomic, assign) id<XWCountryCodeControllerDelegate> deleagete;

//block
//block声明属性
@property (nonatomic, copy) returnCountryCodeBlock returnCountryCodeBlock;
//block声明方法
-(void)toReturnCountryCode:(returnCountryCodeBlock)block;
@end
